package com.itheima.exerciseTest.method20_29.method22;

import java.util.concurrent.Callable;

public class MyCallable implements Callable<String> {
    @Override
    public String call() throws Exception {
        for (int i = 1; i < 100; i++) {
            System.out.println(Thread.currentThread().getName() + " 正在执行 " + i);
        }
        return "MyCallable执行完毕";
    }
}
